import request from '@/utils/request'

export const getList = (params) => {
  return request.get('/admin/interview/query', {
    params: params
  })
}

export const addAPI = (data) => {
  return request.post('/admin/interview/create', data)
}

export const deleteAPI = (id) => {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: { id }
  })
}

export const getDetailAPI = (id) => {
  return request.get('/admin/interview/show', { params: { id } })
}

export const updateAPI = (params) => {
  return request.put('/admin/interview/update', params)
}
